package com.deepocean.dao;

import com.deepocean.entity.GradingScreenCondition;
import com.deepocean.entity.GradingScreenEntity;
import com.deepocean.entity.GradingScreenInAndOut1Hour;
import com.deepocean.entity.process.GradingScreenProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GradingScreenDao {

    /**
     * 添加分级筛数据
     * @param gradingScreenEntity
     * @return
     */
    boolean add(GradingScreenEntity gradingScreenEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    GradingScreenInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param gradingScreenCondition
     * @return
     */
    List<GradingScreenEntity> getGradingScreenByCondition(GradingScreenCondition gradingScreenCondition);

    /**
     * 流程理论数据
     * @param gradingScreenProcessEntity
     * @return
     */
    boolean addProcess(GradingScreenProcessEntity gradingScreenProcessEntity);
}
